<%@ page language="java" import="java.util.*,listener.*" 
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<div>
<%ArrayList<User>  userList =  (ArrayList<User>)request.getServletContext().getAttribute("userList");   %>
		<h3 align="left">当前在线用户:<%= userList.size() %>人</h3>
		<table border="1" cellspacing="0"> 
			<tr>
				<td>id</td>
				<td>ip</td>
				<td>firstTime</td>
			</tr>
			<%
				if(userList!=null){ 
					for(User u:userList){ 
						%>
						<tr>
							<td><%=u.getSessionIdString() %> </td>
							<td><%=u.getIpString() %></td>
						<td><%=u.getFirsttTimeString() %></td>
					</tr>
			<%}}%>
		</table>
	</div>
</body>
</html>